/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package collision;

import java.awt.Image;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

/**
 *
 * @author iRina
 */
public class StartMenu extends InFrame{
    
    private static String STRTMENU_DEFAULTIMAGE = "/Sprites/PikaChuuZombieGame.jpg";
    private int finished;
    private Image image;

    
    public StartMenu(){
    	super(StartMenu.STRTMENU_DEFAULTIMAGE);
        finished = 0;
        addMouseListener(new MAdapter());        
        System.out.print("Passou!");
        
    }
    
   
    
    private class MAdapter extends MouseAdapter{
        
        @Override
        public void mouseClicked(MouseEvent e){
            
            System.out.println("Pegando Mouse =)");
            if(e.getX() < 280 && e.getY() > 360){
                System.out.print("Start Game");
                setFinished(1);//finished = 1; /* Game Start*/
            }
            if(e.getX() > 426 && e.getY() > 360)
                setFinished(2);//finished = 2; /*Crefits*/
            
        }
       }
    
}
